﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Proggy.Web.Cms.Configuration;

namespace Proggy.Web.Cms.Service
{
    /// <summary>
    /// Email service
    /// </summary>
    public interface IEmailService
    {
        /// <summary>
        /// Config
        /// </summary>
        IEmailConfiguration EmailConfiguration { get; set; }

        /// <summary>
        /// Send basic email (no template)
        /// </summary>
        /// <param name="isHtml"></param>
        /// <param name="subject"></param>
        /// <param name="body"></param>
        /// <param name="to"></param>
        /// <param name="errorMsg"></param>
        /// <returns></returns>
        bool SendBasicEmail(bool isHtml, string subject, string body, string to, ref string errorMsg);
    }
}
